package com.qf.service;

import com.qf.pojo.User;

import java.io.IOException;
import java.util.List;

public interface UserService2 {

    List<User> findAll() throws IOException;

    User findById(Integer id) throws IOException;

    int insert(User user) throws IOException;

    int update(User user) throws IOException;

    int delete(Integer id) throws IOException;

    List<User> findByConditions(User user) throws IOException;

    List<User> findByNameAndAge(String name,Integer age) throws IOException;

    List<User> findByIds(List<Integer> ids) throws IOException;
    List<User> findByIds2(Integer... ids) throws IOException;

}
